//
//  PersonLowerCell.m
//  WeiWeiHaircut
//
//  Created by 高继鹏 on 15/10/16.
//  Copyright © 2015年 超群. All rights reserved.
//

#import "PersonLowerCell.h"
#import "UIView+RoundView.h"

@implementation PersonLowerCell

- (void)awakeFromNib {
    // Initialization code
    [self.contentView setlineFrame:CGRectMake(0, 25.0f, WIDTH, .3f) lineColor:[UIColor lightGrayColor] lineAlpha:1];
    [self.contentView setlineFrame:CGRectMake(0, 182.0f, WIDTH, .3f) lineColor:[UIColor lightGrayColor] lineAlpha:1];
    CGFloat midWidth = (WIDTH - 92*3)/4;
    CGFloat orignX = midWidth;
    for (int i = 0; i<3; i++) {
        
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(orignX, 40, 92, 110)];
        imageView.tag = 1000+i;
        imageView.image = [UIImage imageNamed:@"1123.jpg"];
        [self addSubview:imageView];
        orignX += midWidth + 92;
        
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setPhotoArr:(NSArray *)photoArr{
    _photoArr = photoArr;
    for (int i = 0; i<photoArr.count; i++) {
       UIImageView *view =  (UIImageView *)[self viewWithTag:1000+i];
        [view sd_setImageWithURL:[NSURL URLWithString:photoArr[i]] placeholderImage:[UIImage imageNamed:@"1123.jpg"]];
    }
 
    
    
}
@end
